﻿using System;
using fastCSharp;

namespace diantou.web
{
    /// <summary>
    /// 微信二维码充值
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class payment : currentUserView<payment>
    {
        /// <summary>
        /// 充值订单
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.payProductOrder[] orders;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        private bool loadView(int page)
        {
            if (currentUserId != 0)
            {
                if (currentUser.WeixinOpenId.Length == 0) orders = nullValue<diantou.dataAccess.payProductOrder>.Array;
                else orders = diantou.dataAccess.tcpCall.payProductOrder.getUserNod(currentUser.Id, pageInfo.Size = 20, pageInfo.Page = page, out pageInfo.Count);
                return true;
            }
            return false;
        }
    }
}